package com.List集合.demo;

import java.util.ArrayList;
/*
Student(name=ll, age=15)
Student(name=lppl, age=15)
Student(name=lllkk, age=15)
 */
public class ArraysListAndStudent {
    public static void main(String[] args) {
        Student student = new Student("ll",15);
        Student student1 = new Student("lppl",15);
        Student student2= new Student("lllkk",15);
        ArrayList<Student> students = new ArrayList<>();
        students.add(student);
        students.add(student1);
        students.add(student2);

        for (Student student3 : students) {
            System.out.println(student3);
        }
    }
}
